//
//  BK_OD_ExpectedSendTime.m
//  bestkeep
//
//  Created by TOPTEAM on 2017/3/10.
//  Copyright © 2017年 utouu. All rights reserved.
//

#import "BK_OD_ExpectedSendTime.h"
#import "BK_OD_Color.h"
@implementation BK_OD_ExpectedSendTime

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createUI];
    }
    return self;
}
-(void)createUI{
    self.backgroundColor=[UIColor whiteColor];
    
    _lab_left = [[UILabel alloc] init];
    _lab_left.text = @"预计发货时间";
    _lab_left.textColor = kOrderBlack1;
    _lab_left.font = [UIFont systemFontOfSize:15.0];
    _lab_left.textAlignment=NSTextAlignmentLeft;
    [self addSubview:_lab_left];
    
    [_lab_left mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.mas_left).mas_offset(ApplicationBackGauge);
        make.top.equalTo(self.mas_top).mas_offset(0);
        make.bottom.equalTo(self.mas_bottom).mas_offset(0);
        make.right.equalTo(self.mas_right).mas_offset(-30);
    }];
    
    _lab_time = [[UILabel alloc] init];
    _lab_time.text = @"加载中...";
    _lab_time.textColor = kOrderLightGrey1;
    
    _lab_time.font = [UIFont systemFontOfSize:15.0];
    _lab_time.textAlignment=NSTextAlignmentRight;
    [self addSubview:_lab_time];
    
    [_lab_time mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.mas_left).mas_offset(ApplicationBackGauge);
        make.top.equalTo(self.mas_top).mas_offset(0);
        make.bottom.equalTo(self.mas_bottom).mas_offset(0);
        make.right.equalTo(self.mas_right).mas_offset(-ApplicationBackGauge);
    }];
    
}

-(void)fillData:(id)data{
    
    BK_My_DetailOrder_CellModel *cellModel = data;
    BK_My_DetailOrder_Model *_centerModel = cellModel.OrderModel;
    
    _lab_time.text = _centerModel.lastSendDateZh;
    
    
    
}










@end
